package cn.itcast.health.admin.controller;

import cn.itcast.health.commons.entity.QueryPageBean;
import cn.itcast.health.commons.entity.Result;
import cn.itcast.health.interfaces.logservice.LogBusinessFace;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/journal")
public class JournalControoler {

    @Reference
    private LogBusinessFace logBusinessFace;


    @GetMapping("/findByPageJournalData.do")
    public Result findByPageJournalData(QueryPageBean queryPageBean){
        Result result = logBusinessFace.findByPageJournalData(queryPageBean);
        return result;
    }
}
